package com.dayaokeji.rhythmschoolstudent.client.home.meeting.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.utils.SignUtils;
import com.dayaokeji.server_api.domain.Member;

/**
 * Created by Zeno on 2017/10/2.
 */

public class PersonnelManagementAdapter extends BaseQuickAdapter<Member,BaseViewHolder>{

    public PersonnelManagementAdapter() {
        super(R.layout.item_personnel_management, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Member member) {
        baseViewHolder.setText(R.id.tv_name,mContext.getString(R.string.meeting_user_name,member.getName()));
        baseViewHolder.setText(R.id.tv_seat,mContext.getString(R.string.meeting_user_seat,member.getSeat()));
        baseViewHolder.setText(R.id.tv_sign_status, SignUtils.getSignStatus(member.getSignStatus()));
    }


}
